package com.easthome.service.impl;

import com.easthome.mapper.CheckItemMapper;
import com.easthome.pojo.CheckItem;
import com.easthome.service.CheckItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 是否需要添加事务
 *   一次要执行多个SQL语句（2条或者以上）
 *   多个SQL语句中必须含有insert,update,或者delete
 */
@Service
public class CheckItemServiceImpl implements CheckItemService {
    //注入持久层的对象
    @Autowired
    private CheckItemMapper checkItemMapper;

    /**
     * 新增检查项目数据
     */
    @Override
    public void addCheckItem(CheckItem checkItem) {
        checkItemMapper.addCheckItem(checkItem);
    }
}
